<?php

namespace App\Models;

use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class ChatRoom extends Model
{
    use HasFactory,HasDatetimeFormatter;

    protected $fillable=[
        'user_id' ,
        'content' ,
    ];

    public function user()
    {
        return $this->belongsTo(User::class);
    }
}
